#第一步：root用户登陆
docker exec -it talk_mongo \
mongo --port=27017 -u bkroot -p sfxaMg283KCiwsJp --authenticationDatabase admin 
#建程序用户，并授权
use talkroom

db.createUser({  
 user:"talking",
 pwd:"test1234",
 roles:[  
  {  
     role:"readWrite",
     db:"talkroom"
  },
  {  
     role:"read",
     db:"reporting"
  }
 ],
})

use reporting

db.createUser({  
 user:"talking",
 pwd:"test1234",
 roles:[  
  {  
     role:"readWrite",
     db:"talkroom"
  },
  {  
     role:"read",
     db:"reporting"
  }
 ],
})